home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-04 / blrplt.zip / SKEL.DAT < prev    next >
Text File  |  1993-04-09  |  2KB  |  101 lines

  1. program @XX5;
  2. @ZZ7
  3.  
  4. uses WObjects, WinTypes, WinProcs, Strings, WinDos, StdDlgs, StdWnds;
  5.  
  6. @ZZ6
  7. type
  8.   T@XX1 = object(TApplication)
  9.     procedure InitInstance; virtual;
  10.     procedure InitMainWindow; virtual;
  11. @ZZ11
  12.     function ProcessAppMsg(var Message: TMsg): Boolean; virtual;
  13. @ZZ11
  14.   end;
  15.  
  16.   P@XX2 = ^T@XX2;
  17.   T@XX2 = object(@XX0)
  18. @ZZ9
  19.  
  20.     constructor Init(ATitle : PChar);
  21.     procedure SetupWindow ; virtual;
  22.     function GetClassName : PChar; virtual;
  23.     procedure GetWindowClass(var AWndClass : TWndClass); virtual;
  24. @ZZ0
  25.     destructor Done; virtual;
  26.   end;
  27.  
  28. @XX9{-------T@XX2.Init}
  29. constructor T@XX2.Init(ATitle : PChar);
  30. begin
  31. @XX0.Init(Nil, @XX8);
  32. @ZZ8
  33. with Attr do
  34.   begin
  35.   Style := @XX6;
  36. @ZZ2
  37.   end;
  38. @ZZ8
  39. end;
  40.  
  41. {-------T@XX2.SetupWindow;}
  42. procedure T@XX2.SetupWindow;
  43. begin
  44. @XX0.SetupWindow;
  45. @ZZ10
  46. end;
  47.  
  48. {-------T@XX2.GetClassName}
  49. function T@XX2.GetClassName : PChar;
  50. begin
  51. GetClassName := '@XX3';
  52. end;
  53.  
  54. {-------T@XX2.GetWindowClass}
  55. procedure T@XX2.GetWindowClass(var AWndClass : TWndClass);
  56. begin
  57. @XX0.GetWindowClass(AWndClass);
  58. with AWndClass do
  59.   begin
  60. @ZZ3
  61. @ZZ4
  62.   Style := @XX7;
  63.   end;
  64. end;
  65.  
  66. @ZZ1
  67. {------T@XX2.Done}
  68. destructor T@XX2.Done;
  69. begin
  70. @XX0.Done;
  71. end;
  72.  
  73. {------T@XX1.InitMainWindow}
  74. procedure T@XX1.InitMainWindow;
  75. begin
  76.   MainWindow := New(P@XX2, Init('@XX4'));
  77. end;
  78.  
  79. {------T@XX1.InitInstance}
  80. procedure T@XX1.InitInstance;
  81. begin
  82. TApplication.InitInstance;
  83. @ZZ5
  84. end;
  85.  
  86. @ZZ11
  87. {------T@XX1.ProcessAppMsg}
  88. function T@XX1.ProcessAppMsg(var Message: TMsg): Boolean;
  89. begin
  90.   ProcessAppMsg := ProcessAccels(Message) or ProcessDlgMsg(Message);
  91. end;
  92.  
  93. @ZZ11
  94. var
  95.   App : T@XX1;
  96. begin
  97.   App.Init('@XX2');
  98.   App.Run;
  99.   App.Done;
  100. end.
  101.